package com.gxa.modules.community.service.impl;

import com.gxa.modules.community.entity.*;
import com.gxa.modules.community.mapper.ParkingFeeMapper;
import com.gxa.modules.community.service.ParkingFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ParkingFeeServiceImpl implements ParkingFeeService {
    @Autowired
    private ParkingFeeMapper parkingFeeMapper;

    @Override
    public List<ParkingCarFee> queryByPage(Map<String, Object> params) {
        String username = (String)params.get("username");
        String statePay = (String)params.get("statePay");
        String communityId = (String)params.get("communityId");
        List<ParkingCarFee> parkingCarFees =this.parkingFeeMapper.queryByPage(username,statePay,communityId);
        return parkingCarFees;
    }

    @Override
    public void carFeeAdd(ParkingCarFeeAU parkingCarFeeAU) {
        this.parkingFeeMapper.carFeeAdd(parkingCarFeeAU);
    }

    @Override
    public void carFeeUpdate(ParkingCarFeeAU parkingCarFeeAU) {
        this.parkingFeeMapper.carFeeUpdate(parkingCarFeeAU);
    }

    @Override
    public void carFeePayStateUpdate(Integer id) {
        this.parkingFeeMapper.carFeePayStateUpdate(id);
    }

    @Override
    public void carFeeDelete(Integer id) {
        this.parkingFeeMapper.carFeeDelete(id);
    }

    @Override
    public List<IdPark> queryCarPark() {
        List<IdPark> idParks=this.parkingFeeMapper.queryCarPark();
        return idParks;
    }

    @Override
    public List<PayStyle> payState() {
        List<PayStyle> payStyles=this.parkingFeeMapper.payState();
        return payStyles;
    }

    @Override
    public List<ParkingName> carRegion() {
        List<ParkingName> parkingNames=this.parkingFeeMapper.carRegion();
        return parkingNames;
    }

    @Override
    public void carFeeDeleteIds(List<Integer> ids) {
        this.parkingFeeMapper.carFeeDeleteIds(ids);
    }
}
